/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gestorvideoclub.util;

import java.io.*;

/**
 *
 * @author MAMM 18.03.2011
 */
public class EntradaTextoStatic {

    public static String leeCadena() {
        String texto = "";
        try {
            // Obtención  del objeto
            InputStreamReader cony = new InputStreamReader(System.in);
            // Obtención del BufferedReader
            BufferedReader entrada = new BufferedReader(cony);
            texto = entrada.readLine();

        } catch (IOException e) {
            System.out.println("Error");
        }

        // System.out.println(texto);
        return texto;
    }

    public static int leeEntero() {

        return Integer.parseInt(leeCadena());
    }

    public static float leeFloat() {

        return Float.parseFloat(leeCadena());
    }
}
